package com.dxysun.design.singleton;

public enum EnumSingleton
{
	INSTANCE;

	private Object data;

	public Object getData()
	{
		return data;
	}

	public void setData(Object data)
	{
		this.data = data;
	}

	public static EnumSingleton getInstance()
	{
		return INSTANCE;
	}
}

/*
public class Threadlocalsingleton {
private static final Threadlocal<Threadlocalsingleton> threadlocalinstance =
new ThreadLocal<Threadlocalsingleton>()f
@override
司精
protected Threadlocalsingleton initialvalue() {
return new ThreadLocalsingleton();
1
};
private ThreadLocalsingleton(){}
 */